/*
vue2 Vue.use({
    install(vue,options){
      vue.component(组件名，导入的组件)
    }
},options实参)
vue2 Vue.use(function install(vue,options){
      vue.component(组件名，导入的组件)
    }
,options实参)

vue3 app.use({install(app,options){}}/function(app,options),options实参)

*/
import { App } from 'vue'
// export default {
//   install (app: App, options: string[]) {
//     console.log('use执行了', options)
//   }
// }
import XtxSkeleton from '@/components/skeleton/index.vue'
import XtxCarousel from '@/components/carousel/index.vue'
import XtxMore from '@/components/more/index.vue'
import XtxBreadcrumb from '@/components/bread/index.vue'
import XtxBreadcrumbItem from '@/components/bread/breadcrumb-item.vue'
import XtxCity from '@/components/city/index.vue'
import XtxNumbox from '@/components/number/index.vue'
import XtxButton from '@/components/button/index.vue'
export default function (app: App, options: string[]) {
  // console.log('use执行了', options)
  app.component(XtxSkeleton.name, XtxSkeleton)
  app.component(XtxCarousel.name, XtxCarousel)
  app.component(XtxMore.name, XtxMore)
  app.component(XtxBreadcrumb.name, XtxBreadcrumb)
  app.component(XtxBreadcrumbItem.name, XtxBreadcrumbItem)
  app.component(XtxCity.name, XtxCity)
  app.component(XtxNumbox.name, XtxNumbox)
  app.component(XtxButton.name, XtxButton)
}
